package net.area80.skin
{
	import flash.display.Sprite;

	public class ABScrollbarSkin extends AbstractSkin
	{
		
		public function ABScrollbarSkin(bar:Sprite=null, drag:Sprite=null, upBtn:Sprite=null,downBtn:Sprite=null,useWealReference:Boolean=false)
		{
			if(!bar) {
				bar = new Sprite();
				bar.graphics.beginFill(0x000000,0);
				bar.graphics.drawRect(0,0,18,100);
			}
			addItem(bar,"bar");
			addItem(drag,"drag");
			addItem(upBtn,"upBtn");
			addItem(downBtn,"downBtn");
			
			super(useWealReference);
		}
		public function get bar ():Sprite {
			return itemDict["bar"] as Sprite;
		}
		public function get drag ():Sprite {
			return itemDict["drag"] as Sprite;
		}
		public function get upBtn ():Sprite {
			return itemDict["upBtn"] as Sprite;
		}
		public function get downBtn ():Sprite {
			return itemDict["downBtn"] as Sprite;
		}
	}
}